<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <div class="span-1">
                <a href="<?php echo Yii::app()->baseUrl ?>" target="_blank">
                    <i class="sprite sprite-logosivanui_mini" style="display: inline-block;vertical-align: middle;" ></i>
                </a>
            </div>
            <a class="brand" style="margin-left: auto;"><?php echo Yii::app()->name ?> </a>
            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>
            <div class="nav-collapse">
                <?php
                $this->widget('zii.widgets.CMenu', array(
                    'htmlOptions' => array('class' => 'pull-right nav'),
                    'submenuHtmlOptions' => array('class' => 'dropdown-menu'),
                    'itemCssClass' => 'item-test',
                    'encodeLabel' => false,
                    'items' => array(
                        array('label' => 'Login', 'url' => Yii::app()->user->ui->loginUrl, 'visible' => Yii::app()->user->isGuest),
                        array('label' => 'Logout (' . Yii::app()->user->name . ')', 'url' => Yii::app()->user->ui->logoutUrl, 'visible' => !Yii::app()->user->isGuest),
                    ),
                ));
                ?>
            </div>
        </div>
    </div>
</div>

<div class="subnav navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container" >
            <!--inicio alerta-->
            <div class="">
                <div id="StatusBar">
                </div>
                <div id="Notification">
                </div>
            </div>
            <div style="position: absolute">
                <div class="offset1 span11 pull-left" >
                    <?php
                    $flashSms = Yii::app()->user->getFlashes();
                    if ($flashSms) :
                        foreach ($flashSms as $key => $message) :
                            ?>
                            <div style="border-width: 6px;border-style: solid" id="flashSMSMain"  class="alert alert-<?php echo $key ?>">
                                <button type="button" class="close" data-dismiss="alert">&times;</button>
                                <h4> <?php echo $message; ?></h4>
                            </div>
                        <?php endforeach; ?>
                    <?php endif;
                    ?>
                </div>
            </div>
        </div><!-- navbar-inner -->
    </div><!-- subnav -->
</div><!-- subnav -->